package com.csdn;

public class Test1 {
    public static void main(String[] args) {


    }
}

class Cat{
    private String name;
    private int age;

    public Cat(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void est(){
        System.out.println("吃");
    }
}

class mm extends Cat{

    @Override
    public void est() {
        super.est();
    }

    public mm(String name, int age) {
        super(name, age);
    }


}
